using System;
using WpfLob.Frame;
using System.Collections.Generic;
using WpfLob.Projects.DataModel;
using System.Collections.ObjectModel;
using System.ComponentModel;

namespace WpfLob.Menu.ViewModel
{
    public class ProjectsNavigationModel : INotifyPropertyChanged
    {
        private Project _selectedProject;

        public Project SelectedProject
        {
            get { return _selectedProject; }
            set
            {
                _selectedProject = value;
                FirePropertyChanged("SelectedProject");
            }
        }

        #region INotifyPropertyChanged Members

        public event PropertyChangedEventHandler PropertyChanged;

        private void FirePropertyChanged(string propertyName)
        {
            if (PropertyChanged != null)
                PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
        }

        #endregion
    }
}
